package org.yenn.pattern.aliyun.j2ee.businessdelegate;

import lombok.Setter;

/**
 * @Author: yerenyun
 * @Description: 步骤 4 创建业务代表。
 */
public class BusinessDelegate {
    private BusinessLookUp lookupService = new BusinessLookUp();
    private BusinessService businessService;

    @Setter
    private String serviceType;


    public void doTask() {
        businessService = lookupService.getBusinessService(serviceType);
        businessService.doProcessing();
    }
}